Skip to contentSkip to conversation

Change in openvpn[master]: Post tchar.h removal cleanup

Openvpn-devel Superseded flichtenheld (Code Review) 2 participants 13 messages Jan 8, 2025 – Mar 19, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1736341120000.Ib3a166ead912beb2a591105c84d96d342664c05f@...2715...

#1 lore raw

Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/854?usp=email

to review the following change.

Change subject: Post tchar.h removal cleanup
......................................................................

Post tchar.h removal cleanup

Change-Id Ib3a166ead912beb2a591105c84d96d342664c05f

---
M src/openvpnserv/service.h
M src/tapctl/basic.h

2 files changed, 4 insertions(+), 11 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/54/854/1

src/openvpnserv/service.h +0 -5
index daa48d7..9f3c150 100644
@@ -24,11 +24,6 @@
 #ifndef _SERVICE_H
 #define _SERVICE_H
 
-/* We do not support non-unicode builds */
-#ifndef UNICODE
-#define UNICODE
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
src/tapctl/basic.h +4 -6
index ca5c6d4..49a3cf6 100644
@@ -22,13 +22,11 @@
 #ifndef BASIC_H
 #define BASIC_H
 
-#ifdef _UNICODE
-#define PRIsLPWSTR      "ls"
-#define PRIsLPOLESTR    "ls"
-#else
-#define PRIsLPWSTR      "s"
-#define PRIsLPOLESTR    "ls"
+/* We do not support non-unicode builds */
+#ifndef UNICODE
+#define UNICODE
 #endif
+
 #define PRIXGUID        "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX}"
 #define PRIGUID_PARAM(g) \
     (g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4[2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7]

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newchange

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/854?usp=email

to look at the new patch set (#2).

Change subject: Post tchar.h removal cleanup
......................................................................

Post tchar.h removal cleanup

Change-Id Ib3a166ead912beb2a591105c84d96d342664c05f

---
D dev-tools/text-removal.sh
M src/openvpnserv/service.h
M src/tapctl/basic.h

3 files changed, 4 insertions(+), 62 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/54/854/2

dev-tools/text-removal.sh deleted +0 -51
deleted file mode 100755
index 7b4e863..0000000
@@ -1,51 +0,0 @@
-#!/bin/bash
-
-# Replace all occurences of TEXT() in our codebase
-# to convert it to simpler Unicode-only code.
-
-set -x
-
-sed -i -E \
-	-e 's/TEXT\(("[^"]*")\)/L\1/g' \
-	-e 's/TEXT\(([^)]*)\)/L\1/g' \
-        -e 's/_T\(/_L(/g' \
-	-e 's/" LPRIsLPTSTR L"/ls/g' \
-	-e 's/" LPRIsLPTSTR/ls"/g' \
-	-e 's/LPRIsLPTSTR L"/L"ls/g' \
-	-e 's/" LPRIsLPOLESTR L"/ls/g' \
-	-e 's/LPRIsLPOLESTR L"/L"ls/g' \
-	-e 's/" LPRIsLPOLESTR/ls"/g' \
-	-e 's/" PRIsLPTSTR "/ls/g' \
-	-e 's/" PRIsLPOLESTR "/ls/g' \
-	-e 's/TCHAR/WCHAR/g' \
-	-e 's/LPTSTR/LPWSTR/g' \
-	-e 's/LPCTSTR/LPCWSTR/g' \
-	-e 's/LPRIXGUID/_L(PRIXGUID)/g' \
-	-e 's/LTAP_WIN_COMPONENT_ID/_L(TAP_WIN_COMPONENT_ID)/g' \
-	-e 's/LPACKAGE_(VERSION|NAME)/_L(PACKAGE_\1)/g' \
-        -e 's/LPACKAGE /_L(PACKAGE) /g' \
-	-e 's/_tcslen/wcslen/g' \
-        -e 's/_tcszlen/wcszlen/g' \
-	-e 's/_tcsrchr/wcsrchr/g' \
-	-e 's/_tcschr/wcschr/g' \
-	-e 's/_tcsstr/wcsstr/g' \
-	-e 's/_tcszistr/wcszistr/g' \
-        -e 's/_tcscpy/wcscpy/g' \
-        -e 's/_tcsicmp/wcsicmp/g' \
-        -e 's/_tcsdup/wcsdup/g' \
-        -e 's/_istspace/iswspace/g' \
-        -e 's/_stprintf/swprintf/g' \
-        -e 's/_ftprintf/fwprintf/g' \
-        -e 's/_tmain/wmain/g' \
-        -e 's/tchar\.h/wchar.h/g' \
-	src/openvpnmsica/*.[ch] \
-        src/openvpnserv/*.[ch] \
-        src/tapctl/*.[ch]
-
-# manual cleanup for complicated cases
-sed -i -E \
-    -e 's/error 0x%x.\\n"\),/error 0x%x).\\n",/g' \
-    src/tapctl/main.c
-sed -i -E \
-    -e 's/" is optional\\n"\),/") is optional\\n",/g' \
-    src/openvpnserv/service.c
src/openvpnserv/service.h +0 -5
index daa48d7..9f3c150 100644
@@ -24,11 +24,6 @@
 #ifndef _SERVICE_H
 #define _SERVICE_H
 
-/* We do not support non-unicode builds */
-#ifndef UNICODE
-#define UNICODE
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
src/tapctl/basic.h +4 -6
index ca5c6d4..49a3cf6 100644
@@ -22,13 +22,11 @@
 #ifndef BASIC_H
 #define BASIC_H
 
-#ifdef _UNICODE
-#define PRIsLPWSTR      "ls"
-#define PRIsLPOLESTR    "ls"
-#else
-#define PRIsLPWSTR      "s"
-#define PRIsLPOLESTR    "ls"
+/* We do not support non-unicode builds */
+#ifndef UNICODE
+#define UNICODE
 #endif
+
 #define PRIXGUID        "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX}"
 #define PRIGUID_PARAM(g) \
     (g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4[2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7]

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newpatchset

#3 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

stipa has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/854?usp=email )

Change subject: Post tchar.h removal cleanup
......................................................................

Patch Set 2:

(1 comment)

File src/tapctl/basic.h:

http://gerrit.openvpn.net/c/openvpn/+/854/comment/1759f499_ef746e9a :
PS2, Line 25: /* We do not support non-unicode builds */
Shouldn't we instead just define UNICODE in project file or ensure there it has defined? And have an assumption in code that it is already defined.

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-CC: stipa <[email protected]...>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Thu, 09 Jan 2025 10:19:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

#4 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

stipa has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/854?usp=email )

Change subject: Post tchar.h removal cleanup
......................................................................

Patch Set 2: Code-Review+2

(1 comment)

Patchset:

PS2:
I visually checked the changes, compiled on MSVC and smoke-tested, looks good.

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 27 Jan 2025 09:55:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#5 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, stipa.

flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/854?usp=email )

Change subject: Post tchar.h removal cleanup
......................................................................

Patch Set 3:

This change is ready for review.

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-Comment-Date: Tue, 18 Mar 2025 12:17:59 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

#6 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, stipa.

flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/854?usp=email )

Change subject: Post tchar.h removal cleanup
......................................................................

Patch Set 3:

(1 comment)

File src/tapctl/basic.h:

http://gerrit.openvpn.net/c/openvpn/+/854/comment/d1853ec4_d79d4a31 :
PS2, Line 25: /* We do not support non-unicode builds */

Quoted 1 line

Shouldn't we instead just define UNICODE in project file or ensure there it has defined? And have an […]

I don't see the advantage. This here is the most central place. Otherwise you always have to make it consistent over all build systems?

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-Comment-Date: Tue, 18 Mar 2025 12:19:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: stipa <[email protected]...>
Gerrit-MessageType: comment

#7 lore raw

PATCH v3 1/1 Post tchar.h removal cleanup

In reply to a message not in the archive

From: Frank Lichtenheld <[email protected]...>

Change-Id Ib3a166ead912beb2a591105c84d96d342664c05f

---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/854
This mail reflects revision 3 of this Change.

Acked-by according to Gerrit (reflected above):
Lev Stipakov <[email protected]...>

dev-tools/text-removal.sh deleted +0 -51
deleted file mode 100755
index 7b4e863..0000000
@@ -1,51 +0,0 @@
-#!/bin/bash
-
-# Replace all occurences of TEXT() in our codebase
-# to convert it to simpler Unicode-only code.
-
-set -x
-
-sed -i -E \
-	-e 's/TEXT\(("[^"]*")\)/L\1/g' \
-	-e 's/TEXT\(([^)]*)\)/L\1/g' \
-        -e 's/_T\(/_L(/g' \
-	-e 's/" LPRIsLPTSTR L"/ls/g' \
-	-e 's/" LPRIsLPTSTR/ls"/g' \
-	-e 's/LPRIsLPTSTR L"/L"ls/g' \
-	-e 's/" LPRIsLPOLESTR L"/ls/g' \
-	-e 's/LPRIsLPOLESTR L"/L"ls/g' \
-	-e 's/" LPRIsLPOLESTR/ls"/g' \
-	-e 's/" PRIsLPTSTR "/ls/g' \
-	-e 's/" PRIsLPOLESTR "/ls/g' \
-	-e 's/TCHAR/WCHAR/g' \
-	-e 's/LPTSTR/LPWSTR/g' \
-	-e 's/LPCTSTR/LPCWSTR/g' \
-	-e 's/LPRIXGUID/_L(PRIXGUID)/g' \
-	-e 's/LTAP_WIN_COMPONENT_ID/_L(TAP_WIN_COMPONENT_ID)/g' \
-	-e 's/LPACKAGE_(VERSION|NAME)/_L(PACKAGE_\1)/g' \
-        -e 's/LPACKAGE /_L(PACKAGE) /g' \
-	-e 's/_tcslen/wcslen/g' \
-        -e 's/_tcszlen/wcszlen/g' \
-	-e 's/_tcsrchr/wcsrchr/g' \
-	-e 's/_tcschr/wcschr/g' \
-	-e 's/_tcsstr/wcsstr/g' \
-	-e 's/_tcszistr/wcszistr/g' \
-        -e 's/_tcscpy/wcscpy/g' \
-        -e 's/_tcsicmp/wcsicmp/g' \
-        -e 's/_tcsdup/wcsdup/g' \
-        -e 's/_istspace/iswspace/g' \
-        -e 's/_stprintf/swprintf/g' \
-        -e 's/_ftprintf/fwprintf/g' \
-        -e 's/_tmain/wmain/g' \
-        -e 's/tchar\.h/wchar.h/g' \
-	src/openvpnmsica/*.[ch] \
-        src/openvpnserv/*.[ch] \
-        src/tapctl/*.[ch]
-
-# manual cleanup for complicated cases
-sed -i -E \
-    -e 's/error 0x%x.\\n"\),/error 0x%x).\\n",/g' \
-    src/tapctl/main.c
-sed -i -E \
-    -e 's/" is optional\\n"\),/") is optional\\n",/g' \
-    src/openvpnserv/service.c
src/openvpnserv/service.h +0 -5
index b2b706b..7112f26 100644
@@ -24,11 +24,6 @@
 #ifndef _SERVICE_H
 #define _SERVICE_H
 
-/* We do not support non-unicode builds */
-#ifndef UNICODE
-#define UNICODE
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
src/tapctl/basic.h +4 -6
index ca5c6d4..49a3cf6 100644
@@ -22,13 +22,11 @@
 #ifndef BASIC_H
 #define BASIC_H
 
-#ifdef _UNICODE
-#define PRIsLPWSTR      "ls"
-#define PRIsLPOLESTR    "ls"
-#else
-#define PRIsLPWSTR      "s"
-#define PRIsLPOLESTR    "ls"
+/* We do not support non-unicode builds */
+#ifndef UNICODE
+#define UNICODE
 #endif
+
 #define PRIXGUID        "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX}"
 #define PRIGUID_PARAM(g) \
     (g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4[2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7]
#8 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, stipa.

Hello plaisthos, stipa,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/854?usp=email

to look at the new patch set (#4).

The following approvals got outdated and were removed:
Code-Review+2 by stipa

The change is no longer submittable: Code-Review and checks~ChecksSubmitRule are unsatisfied now.

Change subject: Post tchar.h removal cleanup
......................................................................

Post tchar.h removal cleanup

Remove some unused defines.

Change-Id Ib3a166ead912beb2a591105c84d96d342664c05f

---
M src/openvpnserv/service.h
M src/tapctl/basic.h

2 files changed, 4 insertions(+), 11 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/54/854/4

src/openvpnserv/service.h +0 -5
index b2b706b..7112f26 100644
@@ -24,11 +24,6 @@
 #ifndef _SERVICE_H
 #define _SERVICE_H
 
-/* We do not support non-unicode builds */
-#ifndef UNICODE
-#define UNICODE
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
src/tapctl/basic.h +4 -6
index ca5c6d4..49a3cf6 100644
@@ -22,13 +22,11 @@
 #ifndef BASIC_H
 #define BASIC_H
 
-#ifdef _UNICODE
-#define PRIsLPWSTR      "ls"
-#define PRIsLPOLESTR    "ls"
-#else
-#define PRIsLPWSTR      "s"
-#define PRIsLPOLESTR    "ls"
+/* We do not support non-unicode builds */
+#ifndef UNICODE
+#define UNICODE
 #endif
+
 #define PRIXGUID        "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX}"
 #define PRIGUID_PARAM(g) \
     (g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4[2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7]

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 4
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-MessageType: newpatchset

#9 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos, stipa.

cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/854?usp=email )

Change subject: Post tchar.h removal cleanup
......................................................................

Patch Set 4: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 4
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-Comment-Date: Wed, 19 Mar 2025 14:22:11 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#10 lore raw

PATCH v4 1/1 Post tchar.h removal cleanup

In reply to a message not in the archive

From: Frank Lichtenheld <[email protected]...>

Remove some unused defines.

Change-Id Ib3a166ead912beb2a591105c84d96d342664c05f

---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/854
This mail reflects revision 4 of this Change.

Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>

src/openvpnserv/service.h +0 -5
index b2b706b..7112f26 100644
@@ -24,11 +24,6 @@
 #ifndef _SERVICE_H
 #define _SERVICE_H
 
-/* We do not support non-unicode builds */
-#ifndef UNICODE
-#define UNICODE
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
src/tapctl/basic.h +4 -6
index ca5c6d4..49a3cf6 100644
@@ -22,13 +22,11 @@
 #ifndef BASIC_H
 #define BASIC_H
 
-#ifdef _UNICODE
-#define PRIsLPWSTR      "ls"
-#define PRIsLPOLESTR    "ls"
-#else
-#define PRIsLPWSTR      "s"
-#define PRIsLPOLESTR    "ls"
+/* We do not support non-unicode builds */
+#ifndef UNICODE
+#define UNICODE
 #endif
+
 #define PRIXGUID        "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX}"
 #define PRIGUID_PARAM(g) \
     (g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4[2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7]
#11 lore raw

[Openvpn-devel] [PATCH applied] Re: Post tchar.h removal cleanup

"Clean up the rest" - it looks a bit confusing at first, why the UNICODE stuff is removed from service.h - but that's just because "everything!" includes ../tapctl/basic.h, including service.h

Your patch has been applied to the master branch.

commit 6bb20fa8bebc29d8b3103662ffba4904d03e852d

Author: Frank Lichtenheld
Date:   Wed Mar 19 15:22:24 2025 +0100
     Post tchar.h removal cleanup

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg31172.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#12 lore raw
In reply to a message not in the archive

cron2 has uploaded a new patch set (#5) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/854?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by cron2

Change subject: Post tchar.h removal cleanup
......................................................................

Post tchar.h removal cleanup

Remove some unused defines.

Change-Id Ib3a166ead912beb2a591105c84d96d342664c05f

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg31172.html

---
M src/openvpnserv/service.h
M src/tapctl/basic.h

2 files changed, 4 insertions(+), 11 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/54/854/5

src/openvpnserv/service.h +0 -5
index b2b706b..7112f26 100644
@@ -24,11 +24,6 @@
 #ifndef _SERVICE_H
 #define _SERVICE_H
 
-/* We do not support non-unicode builds */
-#ifndef UNICODE
-#define UNICODE
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
src/tapctl/basic.h +4 -6
index ca5c6d4..49a3cf6 100644
@@ -22,13 +22,11 @@
 #ifndef BASIC_H
 #define BASIC_H
 
-#ifdef _UNICODE
-#define PRIsLPWSTR      "ls"
-#define PRIsLPOLESTR    "ls"
-#else
-#define PRIsLPWSTR      "s"
-#define PRIsLPOLESTR    "ls"
+/* We do not support non-unicode builds */
+#ifndef UNICODE
+#define UNICODE
 #endif
+
 #define PRIXGUID        "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX}"
 #define PRIGUID_PARAM(g) \
     (g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4[2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7]

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

#13 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/854?usp=email )

Change subject: Post tchar.h removal cleanup
......................................................................

Post tchar.h removal cleanup

Remove some unused defines.

Change-Id Ib3a166ead912beb2a591105c84d96d342664c05f

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg31172.html

---
M src/openvpnserv/service.h
M src/tapctl/basic.h

2 files changed, 4 insertions(+), 11 deletions(-)
src/openvpnserv/service.h +0 -5
index b2b706b..7112f26 100644
@@ -24,11 +24,6 @@
 #ifndef _SERVICE_H
 #define _SERVICE_H
 
-/* We do not support non-unicode builds */
-#ifndef UNICODE
-#define UNICODE
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
src/tapctl/basic.h +4 -6
index ca5c6d4..49a3cf6 100644
@@ -22,13 +22,11 @@
 #ifndef BASIC_H
 #define BASIC_H
 
-#ifdef _UNICODE
-#define PRIsLPWSTR      "ls"
-#define PRIsLPOLESTR    "ls"
-#else
-#define PRIsLPWSTR      "s"
-#define PRIsLPOLESTR    "ls"
+/* We do not support non-unicode builds */
+#ifndef UNICODE
+#define UNICODE
 #endif
+
 #define PRIXGUID        "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX}"
 #define PRIGUID_PARAM(g) \
     (g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4[2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7]

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged